Skip to content

Close mobile nav when navigating to profile#620

Merged
realproject7 merged 1 commit intomainfrom
task/615-mobile-nav-close
Mar 27, 2026
Merged

Close mobile nav when navigating to profile#620
realproject7 merged 1 commit intomainfrom
task/615-mobile-nav-close

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

Fixes #615

  • Add optional onNavigate callback prop to ConnectWallet
  • Call it on profile link click to close the mobile nav dropdown
  • NavBar passes () => setMobileOpen(false) from the mobile dropdown
  • Desktop ConnectWallet renders without the prop (unchanged behavior)

Test plan

  • Mobile: tap profile link in nav dropdown → nav closes, navigates to profile
  • Desktop: clicking profile link works normally (no callback)
  • Build passes

🤖 Generated with Claude Code

Add onNavigate callback prop to ConnectWallet, called on profile link
click. NavBar passes setMobileOpen(false) from the mobile dropdown.
Desktop behavior unaffected (onNavigate is optional/undefined).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 27, 2026 9:51pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR fixes the mobile-nav profile-navigation bug by threading an optional onNavigate callback from the mobile dropdown into ConnectWallet and invoking it on the profile link only.

Findings

  • None.

Decision

Approved because the change matches issue #615, stays tightly scoped to the affected mobile menu path, and leaves desktop behavior unchanged by keeping the callback optional.

@realproject7 realproject7 merged commit e56902f into main Mar 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix mobile nav not closing when navigating to profile page

2 participants